package top.laoliu.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.laoliu.mapper.DeliveryMapper;
import top.laoliu.pojo.PositionResume;
import top.laoliu.service.DeliveryService;

import java.util.List;

/**
 * @Author: acer
 * @Date: 2020/10/17 14:09
 * @Description:
 */
@Service
public class DeliveryServiceImpl implements DeliveryService {
    @Autowired
    private DeliveryMapper deliveryMapper;

    @Override
    public int getDeliveryCount(Integer user_id) {
        return deliveryMapper.getDeliveryCount(user_id);
    }

    @Override
    public int insertDelivery(PositionResume positionResume) {
        return deliveryMapper.insertDelivery(positionResume);
    }

    @Override
    public int updateDeliveryStatus(PositionResume positionResume) {
        return deliveryMapper.updateDeliveryStatus(positionResume);
    }

    @Override
    public Integer getDeliveryStatus(PositionResume positionResume) {
        return deliveryMapper.getDeliveryStatus(positionResume);
    }

    @Override
    public List<PositionResume> getDeliveriesByUserId(Integer user_id) {
        return deliveryMapper.getDeliveriesByUserId(user_id);
    }
}
